package com.woniu.market_stall.mapper;

import com.woniu.market_stall.entity.Permission;
import com.woniu.market_stall.vo.PermissionVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Integer id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<PermissionVo> selectAllMenu();

    List<Long> selctPermissionIdByRoleId(int id);

    List<PermissionVo> selectMenuByManager(int mid);
}